'use strict';
module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const NewsSearch = app.model.define('news_search', {
    user_id: {
      type: INTEGER,
      allowNull: false,
      omment: '用户的ID',
    },
    number: {
      type: INTEGER,
      allowNull: false,
      defaultValue: 1,
      omment: '搜索的次数 默认为1',
    },
    keywords: {
      type: STRING,
      allowNull: false,
      comment: '关键词',
    },

  });

  return NewsSearch;
};
